<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
	lang="en"
	xml:lang="en">
	<head>
		<title>Urban CMS</title>
		<base href="<?php echo base_url(); ?>" />
		<meta http-equiv="X-UA-Compatible" content="IE=7" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Script-Type" content="text/javascript" />
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta name="TITLE" content="Urban CMS" />
		<meta name="DESCRIPTION" content="Urban CMS" />
		<meta name="KEYWORDS" content="" />
		<meta name="Robots" content="noindex, nofollow" />
		<meta name="Googlebot" content="noindex, nofollow" />
		<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/styles/urban.css" media="screen, print" />
		<?php if (isset($scripts['colorpicker'])) { ?>
		<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/styles/colorpicker.css" media="screen, print" />
		<?php } ?>
		<?php if (isset($scripts['datepicker'])) { ?>
		<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/styles/datePicker.css" media="screen, print" />
		<?php } ?>
		<script type="text/javascript" src="<?php echo base_url(); ?>assets/scripts/jquery-1.6.2.min.js"></script>
		<?php if (isset($scripts['colorpicker'])) { ?>
		<script type="text/javascript" src="<?php echo base_url(); ?>assets/scripts/colorpicker.js"></script>
		<?php } ?>
		<?php if (isset($scripts['datepicker'])) { ?>
		<script type="text/javascript" src="<?php echo base_url(); ?>assets/scripts/date.js"></script>
		<script type="text/javascript" src="<?php echo base_url(); ?>assets/scripts/jquery.datePicker.js"></script>
		<?php } ?>
		<script type="text/javascript" src="<?php echo base_url(); ?>assets/scripts/urban.js" charset="utf-8"></script>
	</head>
	<body>
		<div id="all">
		<?php 
		$this->load->view('header');
		
		if ($this->user->is_valid()) {
			$this->load->view('menu');
			
			if (isset($panel))
				$this->load->view("panels/$panel",$panel_data);
			
		} else {
			$this->load->view('login');
		}
		
		?>
		</div>

	</body>
</html>